package com.chinasofti.generic;

public interface Generic02<T> {
    void show( T t);
}
class A<T> implements Generic02<T>{

    @Override
    public void show(T t) {
        System.out.println("t = " + t);
    }
}
//实现2
class B<T> implements Generic02<Integer>{

    @Override
    public void show(Integer t) {
        System.out.println("integer = " + t);
    }
}
class C{
    public static void main(String[] args) {
        A<String> a =new A();
        a.show("jiji");
        B b=new B();
        b.show(12);

    }
}

